package com.ihrm.atte.dao;

import com.ihrm.domain.atte.entity.ExtraDutyRule;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface ExtraDutyRuleDao extends JpaRepository<ExtraDutyRule,String>, JpaSpecificationExecutor<ExtraDutyRule> {
    
    /**
     * 根据公司和部门查询加班规则配置信息
     */
    List<ExtraDutyRule> findByExtraDutyConfigId(String extraDutyConfigId);
    
    /**
     * 删除配置id的规则
     */
    Integer deleteByExtraDutyConfigId(String extraDutyConfigId);
    
    List<ExtraDutyRule> findByCompanyIdAndDepartmentId(String companyId,String departmentId);
}
